package com.xy.order.service.impl;
import java.util.List;

import com.ruoyi.common.core.domain.order.vo.SubmitPictures;
import com.ruoyi.common.core.mapper.order.SubmitPicturesMapper;
import com.xy.order.service.ISubmitPicturesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单审核照片Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SubmitPicturesServiceImpl implements ISubmitPicturesService
{
    @Autowired
    private SubmitPicturesMapper submitPicturesMapper;

    /**
     * 查询订单审核照片
     *
     * @param id 订单审核照片主键
     * @return 订单审核照片
     */
    @Override
    public SubmitPictures selectSubmitPicturesById(Long id)
    {
        return submitPicturesMapper.selectSubmitPicturesById(id);
    }

    /**
     * 查询订单审核照片列表
     *
     * @param submitPictures 订单审核照片
     * @return 订单审核照片
     */
    @Override
    public List<SubmitPictures> selectSubmitPicturesList(SubmitPictures submitPictures)
    {
        return submitPicturesMapper.selectSubmitPicturesList(submitPictures);
    }

    /**
     * 新增订单审核照片
     *
     * @param submitPictures 订单审核照片
     * @return 结果
     */
    @Override
    public int insertSubmitPictures(SubmitPictures submitPictures)
    {
        return submitPicturesMapper.insertSubmitPictures(submitPictures);
    }

    /**
     * 修改订单审核照片
     *
     * @param submitPictures 订单审核照片
     * @return 结果
     */
    @Override
    public int updateSubmitPictures(SubmitPictures submitPictures)
    {
        return submitPicturesMapper.updateSubmitPictures(submitPictures);
    }

    /**
     * 批量删除订单审核照片
     *
     * @param ids 需要删除的订单审核照片主键
     * @return 结果
     */
    @Override
    public int deleteSubmitPicturesByIds(Long[] ids)
    {
        return submitPicturesMapper.deleteSubmitPicturesByIds(ids);
    }

    /**
     * 删除订单审核照片信息
     *
     * @param id 订单审核照片主键
     * @return 结果
     */
    @Override
    public int deleteSubmitPicturesById(Long id)
    {
        return submitPicturesMapper.deleteSubmitPicturesById(id);
    }

    /**
     * 查询订单审核照片列表
     */
    @Override
    public List<SubmitPictures> selectSubmitPicturesByOrderId(Long orderId) {
        return submitPicturesMapper.selectSubmitPicturesByOrderId(orderId);
    }

    /**
     * 根据订单编号删除订单审核照片
     *
     * @param orderId 订单编号
     * @return 结果
     */
    @Override
    public int deleteSubmitPicturesByOrderId(Long orderId) {
        return submitPicturesMapper.deleteSubmitPicturesByOrderId(orderId);
    }
}

